package com.springboot.web;

import org.apache.lucene.search.ConstantScoreQuery;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.index.query.ConstantScoreQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TongRui乀
 * @Date: 2019/3/14 10:03
 * @description：
 */
@RestController
@RequestMapping("compound")
public class CompoundApiController {

    @Autowired
    private TransportClient transportClient;


    @GetMapping("constant_score")
    public String constant_score(){


        return "success";
    }


}
